package com.hh.vietnameseproject.logic.network

import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.*

interface MainService {
    @GET("getimg")
    fun getHeadImage(@Query("userId") userId: String): Call<ResponseBody>

    @POST("updateName")
    @FormUrlEncoded
    fun changeName(@Field("name") name: String): Call<ResponseBody>

    @POST("sign")
    fun clickCard(): Call<ResponseBody>

    @GET("translate")
    fun translate(@Query("type") type: String, @Query("q") text: String): Call<ResponseBody>

    @GET("getSchedule")
    fun getSchedule(): Call<ResponseBody>

    @GET("thesaurus")
    fun gettThesaurus(): Call<ResponseBody>

    @POST("addSchedule")
    @FormUrlEncoded
    fun updateSchedule(
        @Field("thesaurusId") thesaurusId: String,
        @Field("plandays") plandays: String,
        @Field("nowlearning") nowlearning: String,
        @Field("daylearncount") daylearncount:String
    ): Call<ResponseBody>

    @GET("getwords/{id}")
    fun getWords(@Path("id")id:String):Call<ResponseBody>

    @GET("getNewsweb")
    fun getWebsite():Call<ResponseBody>

    @GET("signrecord")
    fun getRecord():Call<ResponseBody>

}